@prefix-table: ~'@{nameSpace}-table';

.@{prefix-table} {
  width: 100%;
  border-spacing: 0;
  border: none;
  font-size: 14px;
  border-radius: var(--design-border-radius-base);
  overflow: hidden;
  box-shadow: 0 0 4px 0 var(--design-shadow-color);

  td,
  th {
    padding: 0 16px;
    font-weight: 400;
  }

  .@{prefix-table}-align-left {
    text-align: left;
  }

  .@{prefix-table}-align-center {
    text-align: center;
  }

  .@{prefix-table}-align-right {
    text-align: right;
  }

  .@{prefix-table}-thead {
    color: var(--design-text-color-4);


    .@{prefix-table}-theadTr {
      background-color: var(--design-bg-color-3);

      .@{prefix-table}-theadTh {
        font-weight: 600;
        height: 56px;
      }
    }
  }

  .@{prefix-table}-tbody {
    color: var(--design-text-color-5);

    .@{prefix-table}-tbodyTr {
      background-color: var(--design-bg-color-5);
      transition: all .3s;

      &:hover {
        background-color: var(--design-bg-color-3);
      }

      .@{prefix-table}-tbodyTd {
        height: 56px;
      }
    }
  }

  .@{prefix-table}-tfoot {
    color: var(--design-text-color-4);

    .@{prefix-table}-tfootTr {
      background-color: var(--design-bg-color-3);

      .@{prefix-table}-tfootTd {
        height: 56px;
      }
    }
  }
}

.@{prefix-table}-search {
  margin-bottom: 16px;
}

.@{prefix-table}-oprationContent {
  margin-bottom: 16px;
}

.@{prefix-table}-border-top {
  border-top: var(--design-border-color-2) solid var(--design-border-sm);
}

.@{prefix-table}-border-bottom {
  border-bottom: var(--design-border-color-2) solid var(--design-border-sm);
}

.@{prefix-table}-border-right {
  border-right: var(--design-border-color-2) solid var(--design-border-sm);
}

.@{prefix-table}-border-left {
  border-left: var(--design-border-color-2) solid var(--design-border-sm);
}